package com.joker.orange.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.joker.common.annotation.ExcelDictFormat;
import com.joker.common.convert.ExcelDictConvert;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 会员信息视图对象 t_member_info
 *
 * @author Joker
 * @date 2024-06-09
 */
@Data
@ExcelIgnoreUnannotated
public class MemberInfoVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    @ExcelProperty(value = "唯一标识")
    private Long id;

    /**
     * 会员级别（0-天会员、1-月会员、2-年度会员、3-永久会员）
     */
    @ExcelProperty(value = "会员级别", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=-天会员、1-月会员、2-年度会员、3-永久会员")
    private String memberLevel;

    /**
     * 会员类型（0-普通会员、1-网格会员）
     */
    @ExcelProperty(value = "会员类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0-普通会员、1-网格会员")
    private String memberType;

    /**
     * 会员名称
     */
    @ExcelProperty(value = "会员名称")
    private String memberName;

    /**
     * 会员权益
     */
    @ExcelProperty(value = "会员权益")
    private String memberPrivileges;

    /**
     * 会员金额
     */
    @ExcelProperty(value = "会员金额")
    private BigDecimal memberAmount;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
